package holiday;

import CollectionTask.Point;

import java.util.ArrayList;
import java.util.Collection;

public class Collection3 {
    public static void main(String[] args) {
        Collection c=new ArrayList();
        Point p=new Point(2,5);
        c.add(p);
        System.out.println(p);
        System.out.println(c);
        p.setY(100);
        p.setX(200);
        System.out.println(p);
        System.out.println(c);
    }
}
